package org.xlh.springboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.xlh.springboot.bean.User;
import org.xlh.springboot.service.UserService;

@RestController
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/detail")
    public User detail() {
        return userService.selectById();
    }
}
